package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.SysUser;

import java.util.List;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public interface UserDao {
    SysUser findByUsername(String username);

//    模糊查询
    Page<SysUser> findByCondition(String queryString);

    void delRelation(Integer id);

    void updateUser(SysUser sysUser);

    void setRelation(Integer sysId, Integer checkitemId);

    SysUser findByUserId(Integer id);

    List<Integer> findRoleIdByUserId(Integer userId);

    void addUser(SysUser sysUser);

    void deleteUserById(Integer id);

}
